﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;

namespace DQYT.HTDZ.Web.BDVALUE
{
    public partial class Show : Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    decimal ID = (Convert.ToDecimal(strid));
                    ShowInfo(ID);
                }
            }
        }

        private void ShowInfo(decimal ID)
        {
            BDVALUEBLL bll = new BDVALUEBLL();
            BDVALUEModel model = bll.GetModel(ID);
            this.lblID.Text = model.ID.ToString();
            this.lblWELLID.Text = model.WELLID;
            this.lblKSSJ.Text = model.KSSJ.ToString();
            this.lblJCRQ.Text = model.JCRQ.ToString();
            this.lblJSSJ.Text = model.JSSJ.ToString();
            this.lblDDJEDGL.Text = model.DDJEDGL.ToString();
            this.lblDDJEDZS.Text = model.DDJEDZS.ToString();
            this.lblCYJCC.Text = model.CYJCC.ToString();
            this.lblCYJCCI.Text = model.CYJCCI.ToString();
            this.lblSXDLMAX.Text = model.SXDLMAX.ToString();
            this.lblXXDLMAX.Text = model.XXDLMAX.ToString();
            this.lblDDZDZPHD.Text = model.DDZDZPHD.ToString();
            this.lblSXYGPJZ.Text = model.SXYGPJZ.ToString();
            this.lblXXYGPJZ.Text = model.XXYGPJZ.ToString();
            this.lblYGPJZPHD.Text = model.YGPJZPHD.ToString();
            this.lblSXYGMAX.Text = model.SXYGMAX.ToString();
            this.lblXXYGMAX.Text = model.XXYGMAX.ToString();
            this.lblYGZDZPHD.Text = model.YGZDZPHD.ToString();
            this.lblSXNJJFG.Text = model.SXNJJFG.ToString();
            this.lblXXNJJFG.Text = model.XXNJJFG.ToString();
            this.lblNJJFGPHD.Text = model.NJJFGPHD.ToString();
            this.lblRWGNH.Text = model.RWGNH.ToString();
            this.lblRYGZNH.Text = model.RYGZNH.ToString();
            this.lblRYGFNH.Text = model.RYGFNH.ToString();
            this.lblPJGLYS.Text = model.PJGLYS.ToString();
            this.lblPJYGGL.Text = model.PJYGGL.ToString();
            this.lblPJWGGL.Text = model.PJWGGL.ToString();
            this.lblPJSZGL.Text = model.PJSZGL.ToString();
            this.lblPJXDY.Text = model.PJXDY.ToString();
            this.lblPJXIDY.Text = model.PJXIDY.ToString();
            this.lblYGFZL.Text = model.YGFZL.ToString();
            this.lblYGPZL.Text = model.YGPZL.ToString();
            this.lblNJFZL.Text = model.NJFZL.ToString();
            this.lblNJPZL.Text = model.NJPZL.ToString();
            this.lblDMXL.Text = model.DMXL.ToString();
            this.lblXTXL.Text = model.XTXL.ToString();
            this.lblDYNH.Text = model.DYNH.ToString();
            this.lblRCYL.Text = model.RCYL.ToString();
            this.lblHS.Text = model.HS.ToString();
            this.lblDYM.Text = model.DYM.ToString();
            this.lblCMD.Text = model.CMD.ToString();
            this.lblBX.Text = model.BX.ToString();
            this.lblYY.Text = model.YY.ToString();
            this.lblTY.Text = model.TY.ToString();
            this.lblBS.Text = model.BS.ToString();
            this.lblLLPL.Text = model.LLPL.ToString();
            this.lblRCYOL.Text = model.RCYOL.ToString();
            this.lblPHKSL.Text = model.PHKSL.ToString();
            this.lblPHDWZ1.Text = model.PHDWZ1.ToString();
            this.lblPHDWZ2.Text = model.PHDWZ2.ToString();
            this.lblPHDWZ3.Text = model.PHDWZ3.ToString();
            this.lblPHDWZ4.Text = model.PHDWZ4.ToString();
            this.lblPHKZL1.Text = model.PHKZL1.ToString();
            this.lblPHKZL2.Text = model.PHKZL2.ToString();
            this.lblPHKZL3.Text = model.PHKZL3.ToString();
            this.lblPHKZL4.Text = model.PHKZL4.ToString();
            this.lblBJ.Text = model.BJ;

        }


    }
}
